package com.shk.dao;

import com.github.pagehelper.Page;
import com.shk.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionDao {

    Set<Permission> findByRoleId(@Param("roleId") Integer roleId);
    void add(Permission permission);


    Page<Permission> findPage(@Param("value") String queryString);

    Permission findById(@Param("id") Integer id);

    void update(Permission permission);

    void delete(@Param("id") Integer id);

    List<Permission> findAll();
}
